package org.homeworkteam.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.homeworkteam.bean.Teachers;

@Mapper
public interface TeacherMapper extends BaseMapper<Teachers> {

    /**
     * 根据教师 ID 查询教师姓名
     */
    @Select("SELECT teacher_name FROM teachers WHERE teacher_id = #{teacherId}")
    String getTeacherNameById(Integer teacherId);
}
